<%= form_for(@order) do |f| %>
  <% if @order.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@order.errors.count, "error") %> prohibited this order from being saved:</h2>

      <ul>
      <% @order.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :restaurant %><br />
    <%= select("order", "restaurant", Restaurant.all.collect {|r| [ r.name ] }, { :prompt => true }) %>
  </div>
  <div class="field">
    <%= f.label :bounty %><br />
    <%= f.text_field :bounty %>
  </div>
  <div class="field">
    <%= f.label :order_cost %><br />
    <%= f.text_field :order_cost %>
  </div>
  <div class="field">
    <%= f.label :order_destination %><br />
    <%= f.text_field :order_destination %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <%= f.text_area :content %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
